package com.cn.bulu.TEST;

import org.apache.log4j.Logger;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.cn.bulu.dao.CustomerDao;
import com.cn.bulu.dao.HomePageDao;
import com.cn.bulu.pojo.Customer;
import com.cn.bulu.utils.AESCipher;
import com.cn.bulu.utils.MD5Utils.MD5Utils;
import com.cn.bulu.utils.redis.JedisUtil;

public class T1 {
	/*ClassPathXmlApplicationContext ctx;
	@Before
	public void init() {
		ctx = new ClassPathXmlApplicationContext("spring-mvc.xml","spring-mybatis.xml");
	}
	@Test
	public void a(){
		//HomePageDao
		CustomerDao s = ctx.getBean("customerDao",CustomerDao.class);		
		System.out.println(s);
	}*/
	private static Logger logger=Logger.getLogger(T1.class);
	@Test
	public void testAes() {
		 String user="18203453453";
		 String pwd="sais";
		 String weiyi=MD5Utils.getUUID();//获取盐
		 String password=MD5Utils.MD5(pwd+weiyi);
		 System.out.println(password+"=========");
		logger.info("===========日志记录test==============");
		logger.debug("debug===");
		
	}

}
